Search Results

Search: Posts Made By: phoenix_nebula
3,883
Posted By danmero
awk '{print > ("File"((/\|/)?"A":"B")".txt")}'...
awk '{print > ("File"((/\|/)?"A":"B")".txt")}' File1.txt
7,486
Posted By Scrutinizer
Try: sed...
Try:
sed 's|\(....\)\(..\)\(..\)\(..\)\(..\)\(..\)|\1/\2/\3;\4:\5:\6:|' infile
4,125
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,580
Posted By vgersh99
echo 'a|b|c|' | sed 's/[^|][^|]*/&|&/g'
echo 'a|b|c|' | sed 's/[^|][^|]*/&|&/g'
3,268
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,029
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,245
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,472
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 09:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy