Skip to content
Advertisement

Tag: shell

Can I use hexdump in a shell script?

Can I use hexdump in a shell script? When I use it I keep getting an error . syntax error near unexpected token ‘hexdump’ I am not able to figure out why the hexdump code is giving me an error . Please help . Answer You are missing the do in your for loop:

Incorrect format of sending mail from Linux shell

My file format is as below: But if I mail it to my mailbox, the format will be as below: How can I keep my original format when I send file content to my mailbox!? Answer The SMTP specification says that end-of-line in SMTP messages is where in Unix/Linux the end of line is Run the text though a tr

awk in non-interactive is leaving some data missing

I’m running an awk command in a shell script, and it’s breaking the datafile. All of the data doesn’t load, and there’s a newline character at the end of each line. If I run this as a command, it works perfectly. I’ve just found that i can use fflush() and it seems to have solved the issue. So now i

Advertisement