10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Need to sort file based on the number of delimeters in the lines.
Here delimeter is "/"
/home (3 Replies)
Discussion started by: Sumanthsv
2. Shell Programming and Scripting
Hello everyone - I have a task of listing files from a directory together with their type.
I tried using
ls -l | file -b
or different versions of that but that did not work.
I will need this to be in a C shell script that will list the file name, size and type from a directory.
I can do... (12 Replies)
Discussion started by: adrianvas12
3. Shell Programming and Scripting
the following excludes certain directories successfully
cp -r probe/!(dir) /destination
I want to exclude certain file types and tried unsuccessfully
cp -r probe/!(*.avi) /destination (2 Replies)
Discussion started by: tmf
4. Shell Programming and Scripting
I have a delimited (|) file having millions of rows. Sometime the file comes with less number of delimiters than expected. In this scenario I want to delete the row having unmatched delimiters.
Can anyone help me with the command to achieve this?
8039339595113|JIMMY... (2 Replies)
Discussion started by: satyaatcgi
5. Red Hat
I have just been bothered by a fairly small issue for some time now. I am trying to search (using find -name) for some .jpg files recursively. This is a Redhat environment with bash.
I get this job done though I need to copy ALL of them and put them in a separate folder BUT I also... (1 Reply)
Discussion started by: rockf1bull
6. Shell Programming and Scripting
I have a file without any delimeters and it is a flat file. Example,
my raw data looks: x25abcy26defz27ghi.....
Now, could you please any one help me to program to split this into variable and create a text file. I want a output as below
Name Age Number
x 25 abc... (14 Replies)
Discussion started by: Jerald Nathan
7. UNIX for Dummies Questions & Answers
I have several thousand files with different extensions in a directory. Is there a single command to get what the various extensions are with a single command.
Thanks for your help!
Guss (2 Replies)
Discussion started by: Gussifinknottle
8. Shell Programming and Scripting
I have this file generated by me... i want to create some HTML output from it.
The problem is that i am really confused about how do I go about reading the file.
The file is in the following format:
TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Discussion started by: umar.shaikh
9. Shell Programming and Scripting
I am trying to write a script and failing miserably. I have a file that looks something like this;
The desired result is one file containing only... (4 Replies)
Discussion started by: morgadoa
10. Filesystems, Disks and Memory
I have a file of type .for extension .In a guui based unix environment like solaris if I double click on that file a specific program designed by me has to run which takes this file as the parameter and exceutes the program.
Can anyone help me? (8 Replies)
Discussion started by: nhk_srd