10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have prepared a script with ls -t to fetch latest file and compare with duplicates i use below
ls -t *xml |awk 'BEGIN{FS="_"}{if (++dup >= 2) print}'
However for large size folder ls command not working. so i tried with
find ./ -type f \( -iname "*.xml" \) | sort |awk 'BEGIN{FS="_"}{if... (2 Replies)
Discussion started by: gold2k8
2 Replies
2. Fedora
I've tried following multiple procedures from various sites but can't seem to get this figured out. There was another thread on here about the same thing but I couldn't figure out how to apply it to my situation. This is my first time on Linux so I'm just learning.
I am running Fedora 19,... (1 Reply)
Discussion started by: jaykayen
1 Replies
3. Shell Programming and Scripting
How can I prevent find from outputting the directory name /home/xxxxxxxx/Backup/.system (which isn't even "other writable"?
I am trying to search for files that are "world writable" on a shared web host using the find statement, and I want to prevent find from creating an error (because the of... (4 Replies)
Discussion started by: nixie
4 Replies
4. Shell Programming and Scripting
Hi
I'm trying to write a shell script which finds all the .zip files in a given directory then lists them on the screen and prompts the user to select one by entering a number e.g.
The available files are:
1. HaveANiceDay.zip
2. LinuxHelp.zip
3. Arrays.zip
Please enter the... (4 Replies)
Discussion started by: zX TheRipper Xz
4 Replies
5. UNIX for Advanced & Expert Users
Why is my xrandr imagining things? I have disconnected VGA1 power. How is the VGA1 still coming up?
$ xrandr
Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
LVDS1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 304mm x 228mm
1024x768 60.0*+
... (2 Replies)
Discussion started by: cokedude
2 Replies
6. Shell Programming and Scripting
Greetings,
I need to find few patterns related to password (pwsd, pwd, password etc) in a directory includig sub -directories.
I need to redirect the output of find (in combination with grep) to a file which will be later used to verify the files.
OS is Sun Solaris 5.10.
The out put file format... (3 Replies)
Discussion started by: Rajpreet1985
3 Replies
7. UNIX for Dummies Questions & Answers
Hi all, why does one version of this command work but not the other?
- This file already exists with 644 mod permissions
- I am logged in as d269836, no su rights.
- Box is 'SunOS' running bash I think; but runs ksh scripts OK.
This one works:
find /users/d269836 -type f -name "*.txt"... (6 Replies)
Discussion started by: dan-e
6 Replies
8. Shell Programming and Scripting
Below script complains about remove, because the find that pipes into it has no results. It's okay operationally, but a bad error message.
I would like to first check whether find had any output, and only if it had output do the rm with xargs.
How can I check whether find had output?
... (1 Reply)
Discussion started by: tphyahoo
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am confused about the output of find command.
Please see the two find commands below.
When i put "*.c" i get lots of files. But when i put *c only i get only one file.
Any answer??
$ find . -name "*c"
./clarify/cheval/hp_server/rulemanager/rulemansvc... (3 Replies)
Discussion started by: shriashishpatil
3 Replies
10. UNIX for Dummies Questions & Answers
I have a find command that finds all files in a folder older than 6 days
i.e
find . -name "hourly.*" -mtime + 6
This gives me an output
/oralogs/.snapshot/hourly.0
/oralogs/.snapshot/hourly.1
/oralogs/.snapshot/hourly.2
I would like the output to be
hourly.0
hourly.1... (5 Replies)
Discussion started by: NeerajSingh
5 Replies