04-09-2012
That way I can check. Very good.
---------- Post updated at 05:03 PM ---------- Previous update was at 04:58 PM ----------
I am a bit stuck on how to use the wc command on this
Moderator's Comments:
|
|
This thread has gone far enough. The problem posted has far more complexity than the basic usage of the wc command. Please avoid posting random untested input data such as bla and no matching output data.
Ps. As you hav been advised umpteen times on this board, we strongly advise that nobody uses csh for any unix systems work.
|
|
Last edited by methyl; 04-09-2012 at 07:29 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories.
The following command also shows the files but I only want to see the directories.
ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies
2. UNIX for Advanced & Expert Users
I have a directory named Project.I have a control file which contains valid list of files.I would like list the files from directory Project which contains files other than listed in the control file.
Sample control file:
TEST
SEND
SFFFILE
CONTL
The directory contains followign... (15 Replies)
Discussion started by: ukatru
15 Replies
3. Shell Programming and Scripting
I am attempting to convert rewrite rules to Nginx, and since due to the mass amount of rewrites we must convert, I've been trying to write a script to help me on a specific part, easily.
So far I have this:
rewrite ^action/static/(+)/$ staticPage.php?pg=$1&%$query_string;
What I want done... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies
4. Shell Programming and Scripting
Hi,
my desired output needs only that has *.pdf
ls -l *.pdf
error: arg list too long
so I have redirected ls -l > file.txt
therefore, I get the following details in the file
-rw-r--r-- 1 devusr devgrp 848015 Aug 11 15:13 0000795769.pdf
-rw-r--r-- 1 devusr devgrp ... (3 Replies)
Discussion started by: techmoris
3 Replies
5. Shell Programming and Scripting
I need regular expression for excluding specific range.
e.g. Input Data is
10.10.10.50
67.172.15.15
10.10.10.15
78.122.105.108
I would like to extract only 67.172.15.15 & 78.122.105.108.
I tried with something like /(^10.10.10)/ but it's not working.
Please help me on this (17 Replies)
Discussion started by: nrbhole
17 Replies
6. Shell Programming and Scripting
I used to work in perl but I would like to try now bash. Here's my problem
I wanted to search for specific filename (ls -ltrh) on 3 directories.. Example
ls -ltrh | grep "string"
/dir1
/dir1/dir2
/dir1/dir2/dir3
I wanted to get the result to be copied on a different directory. Sample... (2 Replies)
Discussion started by: lhareigh890
2 Replies
7. Shell Programming and Scripting
Hello,
I want to print a number of lines of a file after a specific expression of a line.
I have this sed command but it prints only 1 line after the expression.
How could I adapt it to print for instance 10 lines after or 15 lines after ?
sed -n '/regexp/{n;p;}'
Thx & Regs,
Rany. (5 Replies)
Discussion started by: rany1
5 Replies
8. Shell Programming and Scripting
I'm looking for a script which outputs the list of directories and sub directories from root level consisting of specific files. For instance I want shell script to list all the directories and subdirectories containing .txt files.:wall: (4 Replies)
Discussion started by: super210
4 Replies
9. Shell Programming and Scripting
Hi,
I want to display the file names and the record count for the files in the 2nd column for the files created today.
i have written the below command which is listing the file names. but while piping the above command to the wc -l command
its not working for me.
ls -l... (5 Replies)
Discussion started by: Showdown
5 Replies
10. AIX
I have to list the files of particular directory using file filter like find -name abc* something and if multiple file exist I also want time of each file up to seconds.
Currently we are getting time up to minutes in AIX is there any way I can get file last modification time up to seconds. (4 Replies)
Discussion started by: Nitesh sahu
4 Replies