Search Results

Search: Posts Made By: raghukreddy.ab
2,815
Posted By Aia
Actually, it means, there's no new lines as they...
Actually, it means, there's no new lines as they understand it.

Would this work?
awk 'BEGIN{ RS="\r" } END{print NR}' sample.txt
2,815
Posted By bartus11
Run perl -pe 's/\r/\n/g' sample.txt >...
Run perl -pe 's/\r/\n/g' sample.txt > sample2.txtThenwc -l sample2.txt
740
Posted By itkamaraj
instead of $1 use $0 awk '{printf("-param...
instead of $1 use $0

awk '{printf("-param %s ", $0)}' <filename>
17,996
Posted By jayan_jay
$ find . \( -name "*.ksh" -o -name "*.p" \)...
$ find . \( -name "*.ksh" -o -name "*.p" \) -mtime -7
2,052
Posted By itkamaraj
awk '{a=$3".dat";printf("%s\n",$0) >> a}'...
awk '{a=$3".dat";printf("%s\n",$0) >> a}' abc.dat
2,673
Posted By itkamaraj
when ever you are setting the alias, you need to...
when ever you are setting the alias, you need to provide the absolute path


alias show='sh /absolute/path/of/1.sh'
2,673
Posted By Rksiva
Set the path in environment variable and try to...
Set the path in environment variable and try to execute.


export env_variable=PATH
Forum: What is on Your Mind? 01-02-2012
1,732
Posted By ahamed101
"she" in userdel?
I was going the userdel man page and found this...


Funny? Deliberate? Mistake?
Have you come across something like this?

I found it funny! The author should have some grudge towards the...
10,381
Posted By ctsgnb
No, your solution replace the first pattern...
No, your solution replace the first pattern matching the character # repeated 0 or more times with and empty space.

Consider the following example (for education purpose about understanding...
10,381
Posted By ctsgnb
The difference is in the regex meaning : #* ...
The difference is in the regex meaning :

#* means 0 or more # character
#.* means # followed by 0 or more of any charater
10,381
Posted By ctsgnb
sed 's/#.*//' file1.txt >file2.txt
sed 's/#.*//' file1.txt >file2.txt
971
Posted By bartus11
echo "abc"|sed "s/.*/[&]/" For the second...
echo "abc"|sed "s/.*/[&]/"
For the second output:echo "abc"|sed "s/./[&]/g"
1,608
Posted By jayan_jay
For first question .. $ for user in $(cut...
For first question ..

$ for user in $(cut -d: -f1 < /etc/passwd); do df > /home/$user/diskspace.txt ; done


But you must be a root or a superior user to all these users to create file in...
6,516
Posted By Corona688
I don't know what 'ready' would be, but ps tells...
I don't know what 'ready' would be, but ps tells you the status of a process:

$ ps 1
PID TTY STAT TIME COMMAND
1 ? Ss 0:11 init [3]
$ man ps
...

PROCESS STATE CODES...
1,482
Posted By vbe
Using you cursor, position yourself where you...
Using you cursor, position yourself where you want to erase, dd has a subtle variant:
d0 erases from beginning to cursor
d$ erases from cursor to end of line...
22,934
Posted By itkamaraj
echo "abc" > myfile$(date...
echo "abc" > myfile$(date +%Y%m%d_%H%M%S)
Forum: Tips and Tutorials 12-28-2006
755,963
Posted By Perderabo
find command -mtime -ctime -atime
The find command uses arguments like:
-mtime -2
-mtime +2
-mtime 2

There are -ctime and -atime options as well. Since we now understand the differences among mtime, ctime, and atime, by...
Forum: Tips and Tutorials 07-31-2005
755,963
Posted By Perderabo
mtime, ctime, and atime
Unix keeps 3 timestamps for each file: mtime, ctime, and atime. Most people seem to understand atime (access time), it is when the file was last read. There does seem to be some confusion between...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 10:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy