LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2017, 02:40 PM   #1
CzechFarmer
LQ Newbie
 
Registered: Dec 2017
Posts: 1

Rep: Reputation: Disabled
Pls


Salut Comrade
sorry for my bad english
i try linux comand (to recovery files)
this syntax work for me
(source web: https://bitbook.io/search-grep-entir...ve-for-string/)
sudo strings /dev/sdd1 -n 11 | grep -C100 "string" > report.txt
this not work
(https://sudaraka.org/note-to-self/re...files-on-linux)
sudo grep -a -B 25 -A 100 'some string in the file' /dev/sda1 > results.txt
terminal type: some string in file command not found
looks like bad syntax ?
im run it in ubuntu
is command write for diferent compiler ?
Thanks for answer
 
Old 12-27-2017, 06:56 PM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,436

Rep: Reputation: Disabled
While no one here expects you to be an English professor, please look at the last two links in my signature.

Last edited by jsbjsb001; 12-27-2017 at 06:58 PM. Reason: correction
 
Old 12-27-2017, 09:02 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,230

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
Quote:
Originally Posted by CzechFarmer View Post
Salut Comrade
sorry for my bad english
i try linux comand (to recovery files)
this syntax work for me
(source web: https://bitbook.io/search-grep-entir...ve-for-string/)
sudo strings /dev/sdd1 -n 11 | grep -C100 "string" > report.txt
this not work
(https://sudaraka.org/note-to-self/re...files-on-linux)
sudo grep -a -B 25 -A 100 'some string in the file' /dev/sda1 > results.txt
terminal type: some string in file command not found
looks like bad syntax ?
im run it in ubuntu
is command write for diferent compiler ?
Thanks for answer
Did you used single quotes ' or backticks ` to wrap the string?
 
Old 12-27-2017, 09:29 PM   #4
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,511

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
With grep you must escape spaces
Code:
'some\ string'
 
Old 12-28-2017, 04:17 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 13,413
Blog Entries: 9

Rep: Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658Reputation: 3658
czechfarmer, please don't title your thread "Pls".
it's just wrong.

and i, too, had a hard time understanding what you're writing about.
use code tags for code, and show us working examples, with the output they produced.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't play .pls files in Rhythmbox, closes when I try to load .pls file lqv Linux - Software 2 01-07-2013 09:30 AM
Pls help me to run a file in ns-2...i dono anything about that....pls help me swtjeeva Linux - Newbie 1 07-25-2012 08:18 PM
Pls help me to run a file in ns-2...i dono anything about that....pls help me swtjeeva Linux - Software 3 07-25-2012 08:22 AM
pls u pls help me to install asterisk on a server in italy abdul rashid Linux - Newbie 2 02-17-2010 04:32 PM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration