Search Results

Search: Posts Made By: babom
2,146
Posted By gary_w
Please see my amended post above.
Please see my amended post above.
866
Posted By black_fender
Try this : $: cat text.txt | while read line...
Try this :

$: cat text.txt | while read line
> do
> len=${#line}
> if [ "$len" -ne 53 ]; then
> echo "wrong"
> exit 1
> else
> echo "Perfect"
> fi
> done
wrong
$:
It surely works. In...
13,934
Posted By elixir_sinari
for i in *.REMOVE do echo mv "$i"...
for i in *.REMOVE
do
echo mv "$i" "${i%.REMOVE}"
done
Remove the echo when the mv command lines seem alright.
1,608
Posted By ygemici
try like this ;) [use the backslash for escape...
try like this ;) [use the backslash for escape the plus_metacharacter in ext. regex expres]
# sed 's/^ \+//' infile
2,108
Posted By zaxxon
Something like $ sed...
Something like

$ sed 's/^\(...\)\(.......\)/\1;\2;/g' infile
aaa;aaaaaaa;bbbbbbbbbbbbbbbbbbbb
ccc;bbbbbaa;aaaadddddaaaabbbbbbb
$ sed 's/^\(...\)\(.......\).*/\1;\2;/g' infile
aaa;aaaaaaa;...
1,906
Posted By balajesuri
awk -F, 'NR==FNR{arr[$1];next} $1 in arr' file1...
awk -F, 'NR==FNR{arr[$1];next} $1 in arr' file1 file2
Showing results 1 to 6 of 6

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