-
as seen on Server Fault
- Search for 'Server Fault'
I'm trying to build a bash one-liner to loop over the directories within the current directory and tar the content into unique tars, using the directory name as the tar file name. I've got the basics working (finding the directory names, and tarring them up with those names) but my loop tosses some…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello everyone:
I am trying to comprehend Perl following the way describe in the book "Minimal Perl".
I've uploaded all source txt files onto my own server : results folder
I got the output from using several bash commands in a "chain" like this:
cat run*.txt | grep '^Bank[[:space:]]Balance'|…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
This is probably a complex solution.
I am looking for a simple operator like "", but for prepending.
I am afraid it does not exist. I'll have to do something like
mv $F tmp
cat header tmp $F
Anything smarter? (I am not fond of tmp files)
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
EDIT: I don't know in advance at which "column" my digits are going to be and I'd like to have a one-liner. Apparently sed doesn't do arithmetic, so maybe a one-liner solution based on awk?
I've got a string: (notice the spacing)
eh oh 37
and I want it to become:
eh oh 36
(so I want to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Say I have file A, in middle of which have a tag string "#INSERT_HERE#". I want to put the whole content of file B to that postion of file A. I have tried using pipe to concatenate those contents, but I'm wondering if there is more advanced one-line script to handle it.
Thanks.
>>> More