10 More Discussions You Might Find Interesting
1. Linux
Hi,
My question is how to calculate the quarter end date according to the current date in shell script? (2 Replies)
Discussion started by: Divya_1234
2 Replies
2. UNIX for Beginners Questions & Answers
I am trying to work on a script where it is a *(star) delimited file has a multiple lines starts with RTG and 3rd column=TD8 I want to substring the date part and
I want to replace with currentdate minus 15 days. Here is an example. iam using AIX server
$ cat temp.txt
RTG*888*TD8*20180201~... (1 Reply)
Discussion started by: Shankar455
1 Replies
3. Shell Programming and Scripting
Hi All,
I have written the following code
do
FILE_NO=$(echo $LINE|awk -F"|" '{print $1}'|tr "'" '+'|sed 's/\(.*\)\(++\)\(.*\)\(++\)/\3/')
INST_NO=$(echo $LINE|awk -F"|" '{print $2}'|tr "'" '+'|sed 's/\(.*\)\(++\)\(.*\)\(++\)/\3/')
if ]
then
... (3 Replies)
Discussion started by: yogendra.barode
3 Replies
4. Shell Programming and Scripting
Hi All,
I'm trying to find a file which is created on current day.... I searched in unix.com and i found, below command.
find /land/ -mtime -1 -type f -print | grep "FF_Member_STG.dat"
The command checks if the file with name "FF_Member_STG.dat" is created today then exit else proceed.
... (3 Replies)
Discussion started by: ace_friends22
3 Replies
5. Shell Programming and Scripting
Hi All..
I'm seeking assistance with editing a script to search log files in several directories.
I'm close to what I'm seeking, but need additional guidance.
The log files are always listed by current date; however, inside the log file includes dates that go back to 2011.
What I'm... (6 Replies)
Discussion started by: lenaf7
6 Replies
6. Shell Programming and Scripting
I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies
7. Shell Programming and Scripting
Hello - I have written the following basic shell script to count files, compare files and look for a particular strings in a file.
Problem 1: How do I define more than 1 file location?
#!/bin/bash
#this is a test script
FILES=$(ls /home/student/bin/dir1, home/student/bin/dir2)... (0 Replies)
Discussion started by: DallasT
0 Replies
8. Shell Programming and Scripting
################################################################
Copy this script to your path from where you want to search for all the files and directories in subdirectories recursively.
#################################################################
code starts here... (2 Replies)
Discussion started by: Ramit_Gupta
2 Replies
9. Solaris
Hi,
I am making a script which check the directory and if there is today date file, it is showing message file is there for today date .
1) filename is accessline.win.$timestamp
example ;-accessline.win.200712211004
2) On monday i have recieved two file in this directory with current... (2 Replies)
Discussion started by: pallvi
2 Replies
10. Shell Programming and Scripting
HI,
I need to check whether the given file is 5 weeks older than current date ??
Can anyone give me the script for this ?? (1 Reply)
Discussion started by: risshanth
1 Replies
usb-devices(1) Linux USB Utilities usb-devices(1)
NAME
usb-devices - print USB device details
SYNOPSIS
usb-devices
DESCRIPTION
usb-devices is a (bash) shell script that can be used to display details of USB buses in the system and the devices connected to them.
The output of the script is similar to the usb/devices file available either under /proc/bus (if usbfs is mounted), or under /sys/ker-
nel/debug (if debugfs is mounted there). The script is primairily intended to be used if the file is not available.
In contrast to the usb/devices file, this script only lists active interfaces (those marked with a "*" in the usb/devices file) and their
endpoints.
Be advised that there can be differences in the way information is sorted, as well as in the format of the output.
RETURN VALUE
If sysfs is not mounted, a non-zero exit code is returned.
FILES
/sys/bus/usb/devices/usb*
The part of the sysfs tree the script walks through to assemble the printed information.
/proc/bus/usb/devices
Location where the usb/devices file can normally be found for Linux kernels before 2.6.31, if usbfs is mounted.
/sys/kernel/debug/usb/devices
Location where the usb/devices file can normally be found for Linux kernel 2.6.31 and later, if debugfs is mounted.
SEE ALSO
lsusb(8), usbview(8).
AUTHORS
Greg Kroah-Hartman <greg@kroah.com>
Randy Dunlap <rdunlap@xenotime.net>
Frans Pop <elendil@planet.nl>
usbutils-001 23 June 2009 usb-devices(1)