Search Results

Search: Posts Made By: Bahf1s
5,090
Posted By rdcwayx
awk 'BEGIN{FS=OFS=","} /^170/ {$1="ABCDEFG"}1'...
awk 'BEGIN{FS=OFS=","} /^170/ {$1="ABCDEFG"}1' urfile
5,090
Posted By agama
No, I think that rdcwayx was giving an example of...
No, I think that rdcwayx was giving an example of how you might go about it using the echo as a sample for testing.

I think this is the most straight forward way:


sed 's/^[^,]*/aaaaaaaaaa/'...
5,090
Posted By deepikad
sed -i...
sed -i s/^170[0-9][0-9][0-9][0-9][0-9][0-9][0-9]/<PATTERN>/g file.txt
Showing results 1 to 3 of 3

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