Summary: I cannot explain why it gives different results when I try the awk, sed, tr command combination with the same input. (aondufd1)psoftfs:/aon/dev/psoft/...
Summary: Hi I have a awk/sed script that I am trying to create to remove lines from a file that I thought I needed to call sed in the awk script. This is wha...
Summary: Hi, How can I export variables from awk? For example, I have this script: cat awkscr #start of scr bdf | awk '(/ *% /) && (length($NF)>maxl) {maxl=len...
Summary: Hi guys, Iam a beginner in awk/sed and need a help on awk/sed. This is my requirement. I have a text file with following entry xx yy zz.txt aa bb cc.t...
Summary: The bash syntax ${alpha:5:5} will not work on HP-UX. Â Following are 4 solutions that will provide the fghij result when $alpha is 10 characters or lo...
Summary: Hi Firend, Need a help in awk/sed/tr/ perl .my file is very huge, so need some fast method. My request. ========= 1. File is delimited by | 2. in ...
Summary: looks homeworky to me. If instructor required "pure shell" (no awk,sed ,tr ) and file contains pippo,pluto,paperino bob,mary,bart,jim,buford you could...
Summary: When using the traditional unix tools such as awk, sed, tr, etc. you have no option but to rename the file after processing finishes. I'm not much of ...
Summary: Hi, I m getting different values from a scripts,when it is run through command mode and through crontab. The cron job content is 16 11 * * * /Volumes/...
Summary: maybe someone can suggest a solution as i have been playing with awk and sed but cannot get the desired result I have a CSV file delimeted with quoted...
Summary: Done in KSH, but it worked fine for me. The $startnumber and $readwidth variable basically control the whole thing, you can play with them to get diff...
Summary: Sorry, My apologies, I mistakingly put a $ sign in front of the variables. nawk and /usr/xpg4/awk solved my problems. Thanks I searched the manual pag...
Summary: Dear gurus, (from a Unix beginner) After reading man pages on awk/sed, and still not having a clue, would someone show me the way in a Unix script to ...
Summary: Hi, I am trying to find an awk command or an unix script equivalent to do the following. I have the following txt file 1234 script.sh param1 param2 2...
Summary: is this a homework assigment? if not, you always have the option of invoking an external utility/script from KSH. Invoking a custom perl script is no ...
Summary: Thanks Buodhayan. But, in my case i am getting result as 2856.8950. If you use %5.2f, it is giving the following result: $> echo | awk '{s =2856.8950...
Summary: Regarding #4, you must first get out of insert mode with the escape key: Esc :wq or Esc ZZ #2: ls -ltur -t gives time sort instead of filena...
Summary: It is very easy to waste the first line. awk could do an initial getline to waste it, or tail +1 would do it. But the last line is much more of a pa...
Summary: This is either totalcount or finalcount #prepare all the from= portion of the log #extract out only the from field #take away from= and <> bracke...
Summary: Hi, I have a text file with the data in rows the data file has specfic pattern of rows I need to convert first 3 lines of rows into columns by doing a...
Summary: Hi, Is there any possible way to save the results of a sed command to the same file I'm working on? For example, I have a command: sed -f sedcmd myFil...