Tagged Questions
1
vote
2answers
2k views
Help understanding cut command in script
In a bash script, there are the following 2 lines:
ipaddr=$0
segments=`echo $ipaddr | cut --delimiter=. --fields=2-3 --output-delimiter=/`
I do not know how to interpret the second line where the ...
2
votes
2answers
187 views
Manipulating and saving multiple files
I have ~2k files that I want to extract 12 of 26 columns and save the extracted information into a new file. I have been doing this for individual files using
cat "oldfile.csv" | grep -v "=" | cut ...