Search Results

Search: Posts Made By: phoenix_nebula
3,855
Posted By danmero
awk '{print > ("File"((/\|/)?"A":"B")".txt")}'...
awk '{print > ("File"((/\|/)?"A":"B")".txt")}' File1.txt
7,475
Posted By Scrutinizer
Try: sed...
Try:
sed 's|\(....\)\(..\)\(..\)\(..\)\(..\)\(..\)|\1/\2/\3;\4:\5:\6:|' infile
4,110
Posted By Chubler_XL
How about using awk zcat...
How about using awk

zcat /var/log/messages.2.gz | awk -v MAC=0012CFCDA11A -v C=0 '{ if ($0 ~ "DHCPDIS.*94.18.*"MAC ) C++ } END { print C, MAC }'
3,559
Posted By vgersh99
echo 'a|b|c|' | sed 's/[^|][^|]*/&|&/g'
echo 'a|b|c|' | sed 's/[^|][^|]*/&|&/g'
3,191
Posted By anbu23
awk ' { a[$1] = a[$1] == "" ? $2 : a[$1] " " $2 }...
awk ' { a[$1] = a[$1] == "" ? $2 : a[$1] " " $2 } END { for ( i in a ) { print i " " a[i] } } ' file | sort
2,017
Posted By jim mcnamara
csplit is for you. Read your documentation. ...
csplit is for you. Read your documentation. /^2/ is the regular expression you need. See what you can come up with. We will help when you come back with questions.
11,204
Posted By Scrutinizer
Hi, welcome to the forum. This would be one way...
Hi, welcome to the forum. This would be one way of doing that:
mv "$file" "$(head -1 "$file")"
62,360
Posted By pludi
sort -n -k1.9,1.12
sort -n -k1.9,1.12
Showing results 1 to 8 of 8

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