Forum: Getting Started and Choosing a Distro Oct 14th, 2008 |
| Replies: 1 Views: 393 How to use find to handle large number of files Hi all;
I'm having problem with find command in listing large number of files in the current directory.
This is the code that i use:
find *.dat -prune | xargs ls -ltr
This command cannot handle... |
Forum: Shell Scripting Jun 20th, 2008 |
| Replies: 0 Views: 1,252 Re-write file using shell script Hi all;
Really need your help on writing the shell script based on the condition below.
I need to re generate file and display message on the status of the file.
I need re-write the file by... |
Forum: Shell Scripting Apr 22nd, 2008 |
| Replies: 0 Views: 492 Problem with awk basic Hi all;
I have a file that i need to sort and batch with certain criterias. For every 5 lines that meet the criteria i need to add '1' above it to separate it with other batch.
The original file... |
Forum: Shell Scripting Mar 19th, 2008 |
| Replies: 1 Views: 519 Re: Append line based on fixed position Hi all;
Already got the solution for this problem.
For those who have similar problem like this you can use this script:
awk '
/^1/ { s=$0 }
/^3/ {
if ( s == "" ) next
printf "%-21s%s\n",s,$0 |
Forum: Shell Scripting Mar 19th, 2008 |
| Replies: 1 Views: 519 Append line based on fixed position Hi all;
I'm having headache on append one line to another based on the fix position.Hope u guys can help.
All i need to do is append the line that start with '3' to a line which start with '1' and... |
Forum: Shell Scripting Nov 27th, 2007 |
| Replies: 1 Views: 1,413 Problem with IF condition Hi all;
I'm stuck with this simple awk script,i need to group the lines which the position of 28 length 3 (if the line not starts with 0)that contains "688" into 1 group and other than "688" into... |
Forum: Shell Scripting Nov 25th, 2007 |
| Replies: 3 Views: 979 |
Forum: Shell Scripting Nov 23rd, 2007 |
| Replies: 3 Views: 979 Helpless in shell sorting Hi all,i am very new to shell and awk scripting,..hope u guys can help...
I need help in sorting and grouping the data in one flat file.The file look like... |