10 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
The 'env' command prints out all of the environment variables and their values.
Come up with a command that prints a list of environment variables whose names
end with either 'NAME', 'DIR' or 'PATH'.
What I've tried.
$ env | grep ''
Although it highlights the part of the variables... (8 Replies)
Discussion started by: edujs7
2. Shell Programming and Scripting
guys im new here and i need help with some linux commands.
filea has keyword on each line
i have following commands.
egrep 'www.identity' ~/home/m3 >~/home/lopo2
wc -l file ~/home/lopo2
say lopo2 has 44 lines
then output saved is
identity 44 (1 Reply)
Discussion started by: ahfze
3. UNIX for Dummies Questions & Answers
Lets say I have 100 files. in those files I need to search specific word and I want to tar all those files at once. how can I do that?tar -cvf test.tar |grep house *.*Will it work?
Please wrap all code, files, input & output/errors in CODE tags.
It makes them easier to read and preserves... (2 Replies)
Discussion started by: ded325
4. Shell Programming and Scripting
I have the date as 20130101 and i need it to rephrased to 2013-01-01.
Any command which can do this. (5 Replies)
Discussion started by: ATWC
5. UNIX for Dummies Questions & Answers
Hi I m creating a file which will serve as a virtual harddisk .
I m using following command to create a file.
#dd if=/dev/zero of=/tmp/Sample.dat bs=1M count=1024
I have following doubts regarding the operation.
1) In above example i m creating a file with byte size of 1M .However in... (1 Reply)
Discussion started by: pinga123
6. Shell Programming and Scripting
/(?:date|time|ref)/ and print join " ", /(?:date|time|ref)+/g
Problem I have is that I want to delete words that are on the line of the 3 words above (date, time, and reference). However, I do not want to delete the words... (9 Replies)
Discussion started by: linuxkid
7. UNIX for Dummies Questions & Answers
I'm a complete noobie at UNIX and have hit a problem.
I'm using the 'Talend' ETL tool to try and extract flat files from UNIX on a weekly basis.
The dates are maintained in a control table and the appropriate folder has been mounted.
I am using a component in 'Talend' which enable... (1 Reply)
Discussion started by: markee
8. Shell Programming and Scripting
I search the forum for my query, Glad that got solution to it. But i really want to understand how does this command work.
sed -e ':a' -e 's/\("*\),\(*"\)/\1~\2/;ta'
Basically it is replacing all the comma(,) characters in between quotes with a tilde.
Specially what does ':a' ,... (2 Replies)
Discussion started by: DSDexter
9. Shell Programming and Scripting
Hi can anyone tell me what command should i use to find the files which have been created within 24hrs in / .
I tried with this
find mtime 24 /
But its not working. Pls let me know to solve the issue. (3 Replies)
Discussion started by: vinuvinod
10. Shell Programming and Scripting
I want to know if fuser command can be used to check if a file is being written or not???
Thanks In Advance
Anju (1 Reply)
Discussion started by: anju