Search Results

Search: Posts Made By: ChocoTaco
10,896
Posted By migurus
The job started by a cron will have user's home...
The job started by a cron will have user's home directory as current directory, I'd guess when you run your commands from CLI your current directory is different; Try to add cd /your/target/dir;...
9,008
Posted By Don Cragun
For the sample data shown, you could simply use: ...
For the sample data shown, you could simply use:
grep '^ *"' somefile.txt > outputfile.txt
Note that the second name in:
"SomeUser3" | "alternateUserName3 ) # Some Name...
9,008
Posted By pilnet101
The main two issues with your grep is that you...
The main two issues with your grep is that you are looking for a match at the beginning of the line (using ^). There is only one line which has data at the very beginning in your example text, which...
7,483
Posted By Scrutinizer
A bit of a hack, but without jsawk, you might try...
A bit of a hack, but without jsawk, you might try and get away with something like:
awk -F\" '$2==s{print $(NF-1)}' s=name
It may be enough for your application..
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 01:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy