Search Results

Search: Posts Made By: abdulbadii
2,989
Posted By abdulbadii
awk -F, 'NR==FNR { for (i=3;i<=NF;i++) arr[$1,i]...
awk -F, 'NR==FNR { for (i=3;i<=NF;i++) arr[$1,i] = ","$i; next } { print $0 arr[$1,($2+2)] }' file1 file2
1,827
Posted By abdulbadii
sed -r ':l /$/{ N; s/([^/])LF\n/\1/} ;bl' csvfile
sed -r ':l /$/{ N; s/([^/])LF\n/\1/} ;bl' csvfile
3,307
Posted By abdulbadii
#!/bin/bash ...
#!/bin/bash
target=/fstest/INVESTIG/Sadiq/TEST_ARCH
while read -r line # is added && [[ -n $line ]]; better?
do
mv -fb $line $target && echo...
1,649
Posted By abdulbadii
Explanation for sort utility and its detail
I tried to use sort utility and typed sort --help, read one of lines; its -k option, and part of it:



I am really not getting it
Anyone do me a useful favor to save me out of my ignorance ?
...
1,224
Posted By abdulbadii
$ awk '{if ($6 > 12) { $6--}; if ($1 < 11)...
$ awk '{if ($6 > 12) { $6--}; if ($1 < 11) {$1+=2} print } ' File
2,111
Posted By abdulbadii
@ahfze .. cause you said firstly in example, word...
@ahfze .. cause you said firstly in example, word is at first line, then differ it. Sed not works, use grep PCRE regex instead:

$ echo 'A circumferential abdominoplasty is an extended...
3,571
Posted By abdulbadii
ip=aaaabbcaa op= for s in `echo $ip |sed -r...
ip=aaaabbcaa
op=
for s in `echo $ip |sed -r 's/((\w)\2*)/\1 /g'; do op=$op${s:0:1}${#s}; done

# op= a4b2c1a2
Showing results 1 to 7 of 7

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