Search Results

Search: Posts Made By: sgruenwald
3,215
Posted By sgruenwald
You can create directories, subdirectories and...
You can create directories, subdirectories and subsubdirectories in one swoop with the mkdir -p command (brace expansions) using the bash shell (3.0 or higher!).

mkdir -p...
1,654
Posted By sgruenwald
regex="abx"; for file in *.cvs; do awk -v...
regex="abx"; for file in *.cvs; do awk -v str=$regex '{if ($6==str) print $1,$3,$4}' $file >$file.out; done
882
Posted By sgruenwald
Please follow this URL for info provided by Neo: ...
Please follow this URL for info provided by Neo:

https://www.unix.com/members-only/111844-current-bits-system-awards-alpha-release.html
3,526
Posted By sgruenwald
Hi Corona - nice code, but Pawan needs these...
Hi Corona - nice code, but Pawan needs these lines concatenated, since this is DNA. Meaning, it is actually one long SINGLE string of information, he just broke it into 3 lines. So, if "GAT" is...
2,300
Posted By sgruenwald
awk version
awk '{print $1 "_Fw " $2 "\n" $1 "_Rev " $3}' <input_file >output_file
5,383
Posted By sgruenwald
Explanation
@royalibrahim

cat testfile

AABBACC

grep -E '(.)\1(.)\2{1}\1(.)\3' < testfile
AABBACC

What he did was, he used grep similar to egrep with the -E option, and then used grouping () and back...
Showing results 1 to 6 of 6

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